//
//  HandDrawingHandler.h
//  dataGathering
//
//  Created by apple on 14/12/22.
//  Copyright (c) 2014年 shuili. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ArcGIS/ArcGIS.h>
#import "BaseMode.h"

typedef NS_ENUM(NSUInteger, HandDrawingMode) {
    HandDrawingModePolygon = 0,
    HandDrawingModeRectangle,
    HandDrawingModeTriangle,
    HandDrawingModeEllipse,
    HandDrawingModeCircle,
    HandDrawingModeSkectch,
    HandDrawingModeSingleLine,
    HandDrawingModeMultiLine,
    HandDrawingModeLineSketch,
    HandDrawingModePoint
};


@class HandDrawingHandler;
@protocol HandDrawingHandlerProtocol <NSObject>

@required
- (void)HandDrawingHandler:(HandDrawingHandler *)handler didFinishDrawing:(AGSGeometry *)geometry :(NSString*)type;

@end

@interface HandDrawingHandler : NSObject<BaseModeEndDrawingDelegate>

@property (nonatomic, weak) id <HandDrawingHandlerProtocol> delegate;
@property (nonatomic, strong)NSString *type;

-(instancetype)initWithMapView :(AGSMapView*)mapview;
-(void)setMode :(HandDrawingMode)mode type:(NSString*)type;
-(void)stop;

@end
